Getting and Setting Shape Geometries
The geometry property of geometric shapes contains the geometric points that define the shape. The geometries of polygon shapes and path shapes also contain some additional information, such as the number of separate contours, how many geometric points in each contour, and (for paths) which geometric points are on curve and which are off-curve control points.For general information about each type of geometry, see "About Geometric Shapes" beginning on page 2-5. For specific definitions of each type of geometric structure, see the section "Data Types" beginning on page 2-104.
The
GXSetShapeVector
function allows you to change the geometry of any shape. With this function, you specify a shape and an array of values. The function replaces the geometry of the specified shape with the values in the array. This function works for other shape types as well as geometric shapes.The
GXGetPoint
,GXGetLine
,GXGetCurve
,GXGetRectangle
,GXGetPolygons
, andGXGetPaths
functions each return the geometry of a specific type of shape.The
GXSetPoint
,GXSetLine
,GXSetCurve
,GXSetRectangle
,GXSetPolygons
, andGXSetPaths
functions each replace the geometry of a specific type of shape.
Subtopics
- GXSetShapeVector
- GXGetPoint
- GXSetPoint
- GXGetLine
- GXSetLine
- GXGetCurve
- GXSetCurve
- GXGetRectangle
- GXSetRectangle
- GXGetPolygons
- GXSetPolygons
- GXGetPaths
- GXSetPaths
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help